package com.tsingteng.cosfun.ui.mine.attent;


import com.tsingteng.cosfun.bean.AttentFansbean;
import com.tsingteng.cosfun.bean.AttentRecommendbean;
import com.tsingteng.cosfun.bean.FollowBean;
import com.tsingteng.cosfun.bean.NotificationBean;
import com.tsingteng.cosfun.bean.RecommenResp;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.common.Config;
import com.tsingteng.cosfun.common.Constant;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import java.util.List;


public class AttentListModel extends BaseModel implements IattentListModel {

    @Override
    public void getFollowNotification(String id, RxObserver<FollowBean> callback) {
        doRxRequest().getFollowPerson(id).compose(RxSchedulers.io_main()).subscribe(callback);
    }

    @Override
    public void getNoFollowNotification(String id, RxObserver<FollowBean> callback) {
        doRxRequest().getNoFollow(id).compose(RxSchedulers.io_main()).subscribe(callback);
    }

    @Override
    public void getFansList(String follower_id, int page, RxObserver<AttentFansbean> callback) {
        doRxRequest().getFanList(page, Config.PG_SIZE, follower_id).compose(RxSchedulers.io_main()).subscribe(callback);
    }
    @Override
    public void getAttentList(String follower_id, int page, RxObserver<AttentFansbean> callback) {
        doRxRequest().getAttentList(page, Config.PG_SIZE, follower_id).compose(RxSchedulers.io_main()).subscribe(callback);
    }
    @Override
    public void getReList( RxObserver<RecommenResp> callback) {
        doRxRequest().getFocusList(Constant.MY_FOLLOW_PAGE_RECOMMENDATION,Config.PAGE_NO,Config.PAGE_FIFTY).compose(RxSchedulers.io_main()).subscribe(callback);
    }
}
